<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>{$title|default="羽毛球vip管理后台"}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <script src="__STATIC__/layui/layui.js" charset="utf-8"></script>
  <link rel="stylesheet" href="__STATIC__/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="__STATIC__/layui/css/custom.css" media="all">
</head>

<body class="layui-layout-body">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo"><img style="width: 20px;margin-right: 5px;vertical-align: middle" src="__STATIC__/images/logo.png">羽毛球vip管理后台</div>
      <ul class="layui-nav layui-layout-left">
        {foreach name="top_menu" item="item" }
        <li class="layui-nav-item {$top_menu_selected==$item?'layui-this':''}"><a href="{$item}">{$key}</a></li>
        {/foreach}
      </ul>

      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
          <a href="javascript:;">
            <img src="{$admin_info.avatar}" class="layui-nav-img">
            {$admin_info.nickname}
            [{$admin_info.username}]
          </a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" id="editPassword" data-id="{$admin_info.id}">修改密码</a></dd>
            {if condition="($admin_info.permission == 3)"}
            <dd><a href="javascript:;"><img src=" {$admin_info.qrcode}" alt="" style="width:100px;height:100px;"></a></dd>
            {/if}
          </dl>
        </li>
        <li class="layui-nav-item"><a href="/index/loginOut">退出</a></li>
      </ul>
    </div>

    <div class="layui-side layui-bg-black">
      <ul class="layui-nav layui-nav-tree " lay-filter="left_menu">
        {foreach name="left_menu" item="item" }
        <?php $select = in_array($left_menu_selected, $item); ?>
        <!-- 侧边导航 -->
        <li class="layui-nav-item {$left_menu_selected==$item||$select?='layui-nav-itemed'}">
          <?php 
          if (is_string($item)) {
              ?>
          <a href="{$item}" class="{$left_menu_selected==$item||$select?='active'}">{$key}</a>
          <?php
          } else {
              ?>
          <a href="javascript:;" {$select?='class="active"' }>{$key}</a>
          <dl class="layui-nav-child">
            {foreach name="item" item="i" key="k"}
            <dd><a href="{$i}" {$left_menu_selected==$i?' class="layui-this"':''}>{$k}</a></dd>
            {/foreach}
          </dl>
          <?php
          } ?>
        </li>
        {/foreach}
      </ul>

    </div>
 
    <div class="layui-body">
      <!-- 内容主体区域 -->
      <div class="layui-fluid">
          <div class="layui-card">    
            <script>              
    layui.config({base: '__STATIC__/js/' }) 
    layui.use('element', function(){ var element=layui.element; var $=layui.$;
                $("#editPassword").click(function(){ $.get('/setting/passwordedit?id=' + $(this).data('id'), function
                (html) { layer.open({ type: 1, title: '修改密码' , content: html, skin: 'layui-layer-admin' , shadeClose:
                true }); }); }) }); </script> {__CONTENT__} </div> </div> </div> <!-- <div class="layui-footer">
                © layui.com - 底部固定区域
    </div> -->

  </div>

</body>

</html>